package jobs;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.collections.map.HashedMap;

public class DownloadStatus implements Serializable{
	private static final long serialVersionUID = -4747876713396572168L;
	
	Integer			totalNbFiles;
	Integer			totalNbSegments;
	
	Integer			segmentsCount;
	Integer			filesCount;
	
	String			currentFileName;
	String			currentSegmentName;
	
	String			usedNewsGroup;
	
	Map<String, Integer[]> filesStatus;
	public static Integer CURRENT_SEGMENTS = 0;
	public static Integer TOTAL_SEGMENTS = 1;

	public DownloadStatus(Integer totalNbFiles, Integer totalNbSegments,
			Integer segmentsCount, Integer filesCount, String currentFileName,
			String currentSegmentName, String usedNewsGroup) {
		
		this.totalNbFiles = totalNbFiles;
		this.totalNbSegments = totalNbSegments;
		this.segmentsCount = segmentsCount;
		this.filesCount = filesCount;
		this.currentFileName = currentFileName;
		this.currentSegmentName = currentSegmentName;
		this.usedNewsGroup = usedNewsGroup;
		this.filesStatus = new HashMap<String, Integer[]>();
	}

	public Integer getTotalNbFiles() {
		return totalNbFiles;
	}

	public void setTotalNbFiles(Integer totalNbFiles) {
		this.totalNbFiles = totalNbFiles;
	}

	public Integer getTotalNbSegments() {
		return totalNbSegments;
	}

	public void setTotalNbSegments(Integer totalNbSegments) {
		this.totalNbSegments = totalNbSegments;
	}

	public Integer getSegmentsCount() {
		return segmentsCount;
	}

	public void setSegmentsCount(Integer segmentsCount) {
		this.segmentsCount = segmentsCount;
	}

	public Integer getFilesCount() {
		return filesCount;
	}

	public void setFilesCount(Integer filesCount) {
		this.filesCount = filesCount;
	}

	public String getCurrentFileName() {
		return currentFileName;
	}

	public void setCurrentFileName(String currentFileName) {
		this.currentFileName = currentFileName;
	}

	public String getCurrentSegmentName() {
		return currentSegmentName;
	}

	public void setCurrentSegmentName(String currentSegmentName) {
		this.currentSegmentName = currentSegmentName;
	}

	public String getUsedNewsGroup() {
		return usedNewsGroup;
	}

	public void setUsedNewsGroup(String usedNewsGroup) {
		this.usedNewsGroup = usedNewsGroup;
	}

	public Map<String, Integer[]> getFilesStatus() {
		return filesStatus;
	}

	public void setFilesStatus(Map<String, Integer[]> filesStatus) {
		this.filesStatus = filesStatus;
	}
	
}
